<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test log output</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../index.html" title="Boost.Test">
<link rel="up" href="../log_formats.html" title="Log formats">
<link rel="prev" href="../log_formats.html" title="Log formats">
<link rel="next" href="log_human_readable_format.html" title="HRF: Human readable log format">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
<td align="center"><a href="../../../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../log_formats.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../log_formats.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="log_human_readable_format.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_test.test_output.log_formats.test_log_output"></a><a class="link" href="test_log_output.html" title="Test log output">Test
        log output</a>
</h4></div></div></div>
<p>
          The test log is produced during the test execution. All entries in the
          test log are assigned a particular log level. Only the entries with level
          that exceeds the <span class="emphasis"><em>active log level threshold</em></span> actually
          appear in the test log output. Log levels are arranged by the 'importance'
          of the log entries. Here is the list of all levels in order of increasing
          'importance':
        </p>
<a name="test_log_output_table"></a><div class="table">
<a name="boost_test.test_output.log_formats.test_log_output.id_messages"></a><p class="title"><b>Table 4. Messages</b></p>
<div class="table-contents"><table class="table" summary="Messages">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
                  <p>
                    Notifications
                  </p>
                </th>
<th>
                  <p>
                    Meaning
                  </p>
                </th>
</tr></thead>
<tbody>
<tr>
<td>
                  <p>
                    Success
                  </p>
                </td>
<td>
                  <p>
                    This category includes messages that provide information on successfully
                    passed assertions
                  </p>
                </td>
</tr>
<tr>
<td>
                  <p>
                    Test tree traversal
                  </p>
                </td>
<td>
                  <p>
                    This category includes messages that are produced by the <span class="emphasis"><em>Unit
                    Test Framework</em></span> core and indicate which test suites/cases
                    are currently being executed or skipped
                  </p>
                </td>
</tr>
<tr>
<td>
                  <p>
                    General information
                  </p>
                </td>
<td>
                  <p>
                    This category includes general information messages produced
                    in most cases by a test module author using the macro <a class="link" href="../../utf_reference/testout_reference/test_output_macro_message.html" title="BOOST_TEST_MESSAGE"><code class="computeroutput"><span class="identifier">BOOST_TEST_MESSAGE</span></code></a>
                  </p>
                </td>
</tr>
<tr>
<td>
                  <p>
                    Warning
                  </p>
                </td>
<td>
                  <p>
                    This category includes messages produced by failed <code class="computeroutput"><span class="identifier">WARNING</span></code> level assertions
                  </p>
                </td>
</tr>
<tr>
<td>
                  <p>
                    Non fatal error
                  </p>
                </td>
<td>
                  <p>
                    This category includes messages produced by failed <code class="computeroutput"><span class="identifier">CHECK</span></code> level assertions
                  </p>
                </td>
</tr>
<tr>
<td>
                  <p>
                    Uncaught C++ exceptions
                  </p>
                </td>
<td>
                  <p>
                    This category includes messages that are produced by the <span class="emphasis"><em>Unit
                    Test Framework</em></span> and provide detailed information on
                    the C++ exceptions uncaught by the test case body.
                  </p>
                </td>
</tr>
<tr>
<td>
                  <p>
                    Non-fatal system error
                  </p>
                </td>
<td>
                  <p>
                    This category includes messages that are produced by the <span class="emphasis"><em>Unit
                    Test Framework</em></span> itself and provides information about
                    caught non-fatal system error. For example it includes messages
                    produced in the case of test case timeout or if floating point
                    values calculation errors are caught.
                  </p>
                </td>
</tr>
<tr>
<td>
                  <p>
                    Fatal system error
                  </p>
                </td>
<td>
                  <p>
                    This category includes messages produced by failed require level
                    assertions and by the <span class="emphasis"><em>Unit Test Framework</em></span>
                    itself in case of abnormal test case termination.
                  </p>
                </td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><div class="note"><table border="0" summary="Note">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../../doc/src/images/note.png"></td>
<th align="left">Note</th>
</tr>
<tr><td align="left" valign="top"><p>
            The active log level works namely as threshold, not as selector. For
            the given active log level threshold, all test log entries with <span class="emphasis"><em>importance</em></span>
            higher than threshold are enabled and all test log entries with <span class="emphasis"><em>importance</em></span>
            below threshold are disabled.
          </p></td></tr>
</table></div>
<p>
          In addition to the levels described above the test log defines two special
          log levels. The current log level can be set to:
        </p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem">
              All messages<br> If active log level threshold is set to this value,
              all test log entries appear in the output. In practice this is equivalent
              to setting the active log level threshold to <span class="emphasis"><em>success information
              messages</em></span>
            </li>
<li class="listitem">
              Nothing<br> If the active log level threshold is set to this value,
              none of test log entries appear in the output. This log level is used
              to execute a <span class="emphasis"><em>silent</em></span> test that doesn't produce
              any test log and only generates a result code indicating whether test
              failed or passed.
            </li>
</ul></div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2001-2022 Boost.Test contributors<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../log_formats.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../log_formats.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="log_human_readable_format.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
